package com.kt.thread.demo;

import java.util.Timer;
import java.util.TimerTask;

/**
 * Created by tangwy on 2016/1/7.
 */
public class MyTimerTask extends TimerTask {
    public MyTimerTask() {
        System.out.println("Create Task");
    }

    @Override
    public void run() {
        System.out.println("Boom");
        new Timer().schedule(new MyTimerTask(), 2000);
    }
}
